package hongcaosp.app.android.modle.bean;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 用户钱包
 */
public class UserWallet {
    @JSONField(name = "id")
    private Long id;
    @JSONField(name = "userId")
    private Long userId;
    @JSONField(name = "amount")
    private Double amount;
    @JSONField(name = "amountTotal")
    private Double amountTotal;
    @JSONField(name = "redAmount")
    private Double redAmount;
    @JSONField(name = "redAmountTotal")
    private Double redAmountTotal;
    @JSONField(name = "createTime")
    private Long createTime;
    @JSONField(name = "isBindWx")
    private Boolean isBindWx;
    @JSONField(name = "isBindAli")
    private Boolean isBindAli;

    @JSONField(name = "accountWx")
    private String accountWx;
    @JSONField(name = "accountAli")
    private String accountAli;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Double getAmount() {
        return amount == null ? 0 : amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Double getAmountTotal() {
        return amountTotal;
    }

    public void setAmountTotal(Double amountTotal) {
        this.amountTotal = amountTotal;
    }

    public Double getRedAmount() {
        return redAmount == null ? 0 : redAmount;
    }

    public void setRedAmount(Double redAmount) {
        this.redAmount = redAmount;
    }

    public Double getRedAmountTotal() {
        return redAmountTotal;
    }

    public void setRedAmountTotal(Double redAmountTotal) {
        this.redAmountTotal = redAmountTotal;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Boolean getBindWx() {
        return isBindWx;
    }

    public void setBindWx(Boolean bindWx) {
        isBindWx = bindWx;
    }

    public Boolean getBindAli() {
        return isBindAli;
    }

    public void setBindAli(Boolean bindAli) {
        isBindAli = bindAli;
    }

    public String getAccountWx() {
        return accountWx;
    }

    public void setAccountWx(String accountWx) {
        this.accountWx = accountWx;
    }

    public String getAccountAli() {
        return accountAli;
    }

    public void setAccountAli(String accountAli) {
        this.accountAli = accountAli;
    }
}
